<input class="button" type="button" value="{if $Item.$WorkTableKeyFieldName == '' || $showAddNewForm neq ''}{$lang.admin.addButton}{else}{$lang.admin.editButton}{/if}" onClick="document.forms['{$Config.AddFormName}'].act.value='{if $Item.$WorkTableKeyFieldName == '' || $showAddNewForm neq ''}addnew{else}edititem{/if}';document.forms['{$Config.AddFormName}'].submit();" />